package com.lanou3g.ptp.student.mapper;

import com.lanou3g.ptp.entity.Student;
import com.lanou3g.ptp.vo.TreeNode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentMapper {
    /*
    查询所有学生
     */
    List<Student> studentAll();

    Student studentById(Long id);

    int deleteById(Long id);

    int upStudent(@Param("student") Student student);

    int addStudent(Student student);

    Long findClazzId(Long clazzId);

    Student findById(Long id);

    List<Student> findBySchoolId(Long schoolId);

    List<TreeNode> treeByMajorId(Long majorId);
}
